${page.setTitle("push-center| GOPS")}
<div class="body-pla-content">
	<div class="s-table-wapper">
	<form action="">
		<table class="s-table">
			<tr>
			
				<td><input id="btnSearch"  type="button" value="查询"  class="l-button"/>
				</td>	
			</tr>
		</table>
		</form>
	</div>
	<div id="maingrid" style="margin:0; padding:0"></div>
	<div style="display:none;">
</div>



<script type="text/javascript">


var grid;
$(function () {
     var columns= [
       					{ display: '队列', name: 'queueName', width: 200},
       					{ display: '消息个数', name: 'count', width: 100}
                   ];
	grid = $("#maingrid").ligerGrid({
						columns:columns,
						checkbox:false,
						enabledSort:false,
						pageSize:10,
						dataAction:'server',
						root:'rows',
						record :'total',
						pageParmName :'page',
						pagesizeParmName :'pageSize',
						width: '100%',
						height:'90%',
						url:'${appServer}/queue/list-all.json',
						parms : $("form").serializeArray(),
						method:'get',
						onSuccess:function(data, grid){
							if(data.hasError){
								$.ligerDialog.error(data.message);
							}
						}
					});
     	
     $("#pageloading").hide();
     
      $("#btnSearch").click(function(){
		 search();
	 });
});

function search(){
	 var appKey=$("#appKey");
 	 grid.setOptions( {
 		  		url: '${appServer}/queue/list-all.json',
 		  		pageSize:10,
 		  		page:1,
 		  		content:'content',
 		  		recieveId:'receiveId',
 		  		dataAction:'server',
                parms : $("form").serializeArray()
         });
}

</script>
